package io.renren.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.entity.XlsAreasEntity;
import io.renren.common.service.impl.CrudServiceImpl;
import io.renren.dao.XlsAreasDao;
import io.renren.dto.XlsAreasDTO;
import io.renren.service.XlsAreasService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 区域表
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2020-04-12
 */
@Service
public class XlsAreasServiceImpl extends CrudServiceImpl<XlsAreasDao, XlsAreasEntity, XlsAreasDTO> implements XlsAreasService {

    @Override
    public QueryWrapper<XlsAreasEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<XlsAreasEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StringUtils.isNotBlank(id), "id", id);

        return wrapper;
    }


}